@import '../common.less';

@color-0: #404553; // 边框
@color-1: #444444;
@color-2: #ffffffb3; // 普通文字
@color-3: #ffffffff; // 激活文字
@color-4: #393D49ff; // 背景

// 头部颜色
@h-color-b: #23262E;
@h-color-f: #ffffffb3;
@h-color-fa: #ffffffff;
@h-color-m: #5FB878;
@h-color-c: #333333;

@h-height: 60px;

// 菜单
@s-width: 220px;
@s-width-s: 3px;
@s-color-b: #393D49;
@s-color-ba: #4E5465;
@s-color-bc: #0000004d;
@s-color-a: #009688;
@s-color-f: #ffffffb3;
@s-color-fa: #ffffffff;

// 底部信息条
@f-height: 45px;

.layui-layout-admin {
    .layui-header {
        background: @h-color-b;
        box-sizing: border-box;

        .layui-logo {
            top: -1px;
            width: auto;
            display: flex;
            height: @h-height;
            padding: 8px 0px;
            margin-left: 10px;
            align-items: center;
            flex-direction: row;
            box-sizing: border-box;

            img {
                height: 100%;
            }

            div {
                font-size: 20px;
                color: @h-color-f;
                margin-left: 15px;
                padding-left: 15px;
                height: @h-height * 0.5;
                line-height: @h-height * 0.5;
            }
        }

        .layui-nav-item {
            a {
                color: @h-color-f;

                &:hover {
                    color: @h-color-fa;
                }

                .layui-nav-img {
                    border: 1px solid @color-0;
                }

                .layui-nav-more {
                    border-top-color: @h-color-f;
                    border-color: @h-color-f transparent transparent;

                    &.layui-nav-mored {
                        margin-top: -9px;
                        border-style: dashed dashed solid;
                        border-color: transparent transparent @h-color-fa;
                    }
                }
            }

            .layui-nav-child {
                a {
                    color: @h-color-c;
                }
            }
        }

        .layui-nav-bar {
            background: @h-color-m  !important;
        }
    }

    .layui-body {
        box-sizing: border-box;
        position: fixed;
        bottom: @f-height;
        left: @s-width ;
        top: @h-height;

        &.noscroll {
            overflow: hidden;
        }

        &>div {
            padding: 15px;
            min-width: 100%;
            min-height: 100%;
            box-sizing: border-box;
        }

        &::-webkit-scrollbar {
            width: 5px;
        }

        &::-webkit-scrollbar-thumb {
            background-color: #dddddd;
            background-clip: padding-box;
            min-height: 28px;

            &:hover {
                background-color: #bbb;
            }
        }

        &::-webkit-scrollbar-track-piece {
            background-color: #f8f8f8;
        }
    }

    .layui-side {
        width: @s-width;

        .layui-side-scroll {
            width: @s-width;
            overflow: auto;
            overflow-y: scroll;

            &::-webkit-scrollbar {
                width: @s-width-s;
            }

            &::-webkit-scrollbar-thumb {
                background-color: #dddddd;
                background-clip: padding-box;
                min-height: 28px;

                &:hover {
                    background-color: #bbb;
                }
            }

            &::-webkit-scrollbar-track-piece {
                background-color: #f8f8f8;
            }

            .layui-nav-tree {
                width: @s-width - @s-width-s;
                background: @s-color-b;

                .layui-nav-item {
                    a {
                        height: 45px;
                        color: @s-color-f;
                        line-height: 45px;
                        padding-left: 15px;
                        font-weight: bolder;

                        i {
                            margin-right: 5px;
                        }

                        .layui-nav-more {
                            border-top-color: @s-color-f;
                            border-color: @s-color-f transparent transparent;
                        }

                        &:hover {
                            color: @s-color-fa;
                            background: @s-color-ba ;
                        }
                    }

                    .layui-nav-child {
                        background: @s-color-bc  !important;

                        a {
                            padding-left: 25px;
                            font-weight: unset;

                            &:hover {
                                color: @s-color-fa;
                                background: 0 0;
                            }
                        }
                    }

                    &.layui-nav-itemed>a {
                        color: @s-color-fa  !important;

                        .layui-nav-more {
                            margin-top: -9px;
                            border-style: dashed dashed solid;
                            border-color: transparent transparent @s-color-fa;
                        }
                    }
                }

                .layui-this>a {
                    color: @s-color-fa  !important;
                    background: @s-color-a  !important;
                }

                .layui-nav-bar {
                    background: @s-color-a  !important;
                }
            }
        }
    }

    .layui-footer {
        left: @s-width;
        height: @f-height;
    }
}